package com.tedu.pojo;

import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * 商品信息实体类
 *
 */
@TableName(value = "pd_item")
public class Item {
      private long id;//'商品id，同时也是商品编号',
      private String brand;// '品牌',
    private String model;// '型号',
    private String title;// '商品标题',
    private String sell_point;// '商品卖点',
    private long price;// '商品价格，单位为：分',
    private int num;// '库存数量',
    private String barcode; //'商品条形码',
    private String image;// '商品图片',
    private int cid;//'所属类目，叶子类目',
    private int status;//商品状态，1-正常，2-下架，3-删除',
    private Date created;// '创建时间',
    private Date updated;// '更新时间',

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSell_point() {
        return sell_point;
    }

    public void setSell_point(String sell_point) {
        this.sell_point = sell_point;
    }

    public long getPrice() {
        return price;
    }

    public void setPrice(long price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Item(long id, String brand, String model, String title, String sell_point, long price, int num, String barcode, String image, int cid, int status, Date created, Date updated) {
        this.id = id;
        this.brand = brand;
        this.model = model;
        this.title = title;
        this.sell_point = sell_point;
        this.price = price;
        this.num = num;
        this.barcode = barcode;
        this.image = image;
        this.cid = cid;
        this.status = status;
        this.created = created;
        this.updated = updated;
    }

    @Override
    public String toString() {
        return "Item{" +
                "id=" + id +
                ", brand='" + brand + '\'' +
                ", model='" + model + '\'' +
                ", title='" + title + '\'' +
                ", sell_point='" + sell_point + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", barcode='" + barcode + '\'' +
                ", image='" + image + '\'' +
                ", cid=" + cid +
                ", status=" + status +
                ", created=" + created +
                ", updated=" + updated +
                '}';
    }


    public Item() {
    }
}
